﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
        
        function quick(what) {
            document.getElementById("<%= TestBody.ClientID %>").value = what;
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TestBody" runat="server" TextMode="MultiLine" Rows="10" cols="40"></asp:TextBox>
    </div>
    <div>
        Quick: <a href="#" onclick="quick('spam');">spam</a>, <a href="#" onclick="quick('unsure');">unsure</a>, <a href="#" onclick="quick('ham');">ham</a>
    </div>
    <asp:Panel ID="CaptchaPanel" runat="server" Visible="false">
        <asp:Image ID="CaptchaImage" runat="server" /> = <asp:TextBox ID="CaptchaSolution" runat="server" cols="10" />
    </asp:Panel>
    <div>
        <asp:Button runat="server" ID="Submitter" Text="Submit" OnClick="Submitter_Click" /> 
    </div>

    <p>
    <asp:Image ID="Ham" runat="server" Visible="false" ImageUrl="~/img/ham.jpg" />
    <asp:Image ID="Spam" runat="server" Visible="false" ImageUrl="~/img/spam.gif" />
    <asp:Literal ID="Results" runat="server"></asp:Literal>
    </p>    
    
    </form>
</body>
</html>
